package lp.xian.materials.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.domain.Supplier;
import lombok.Data;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 请购计划对象 lp_requisition
 *
 * @author ruoyi
 * @date 2023-08-05
 */
@Data
public class Requisition extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Integer requisitionId;
    /** 供应商 */
    @Excel(name = "供应商")
    private Integer supplierId;

    /** 单据号 */
    @Excel(name = "单据号")
    private Integer requisitionPo;

    /** 请购计划名称 */
    @Excel(name = "请购计划名称")
    private String requisitionName;

    /** 请购人员 */
    @Excel(name = "请购人员")
    private String requisitionPerson;

    /** 采购类型（0：正常 1：紧急 ） */
    @Excel(name = "采购类型", readConverterExp = "0=：正常,1=：紧急")
    private Integer requisitionType;

    /** 日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date requisitionDate;

    /** 审核状态 */
    @Excel(name = "审核状态")
    private Integer auditStatus;

    /** 审核人 */
    @Excel(name = "审核人")
    private String auditPerson;

    /** 审核时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "审核时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date auditTime;

    private Supplier supplier;


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("supplierId", getSupplierId())
                .append("requisitionId", getRequisitionId())
                .append("requisitionPo", getRequisitionPo())
                .append("requisitionName", getRequisitionName())
                .append("requisitionPerson", getRequisitionPerson())
                .append("requisitionType", getRequisitionType())
                .append("requisitionDate", getRequisitionDate())
                .append("auditStatus", getAuditStatus())
                .append("auditPerson", getAuditPerson())
                .append("auditTime", getAuditTime())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
